<layout name="../Common/Master/master" />
<include file="../Common/Master/left" />
<div class="orderright">

	<div class="orderlist">
		<h2>退货记录</h2>
		<foreach name="goods" item="vo">
			<div class="carshop">
				<h4>订单编号: {$vo['ordernumber']}</h4>
				<div class="cartitle">
					<div class="carname">商品名称</div>
					<div class="carmoney">单价</div>
					<div class="carnum">数量(件)</div>
					<div class="carcount">小计</div>
				</div>
				<foreach name="vo['value']" item="voo">
					<div class="shopcontent">
						<div class="shopname">
							<div class="carimg">
								<a href=""><img width="80px" height="80px" src="{$voo['thumb']}"/></a>
							</div>
							<p>
								<a href="{:U('home/goodinfo/index',['gid'=>$voo['gid']])}" style="font-size: 14px;display: inline-block;width: 290px;overflow: hidden">{$voo['gname']}</a>
								<!--<span>适配机型： 小米手机5</span>-->
							</p>
						</div>
						<div class="shopmoney"  style="width: 50px">{$voo['priced']}元</div>
						<div class="shopnum" style="width: 50px;margin-left: 50px">
							{$voo['count']}
						</div>
						<div class="shopcount" style="width: 50px;margin-left: 55px">{$voo['zongjia']}</div>


					</div>
				</foreach>
			</div>
			<div class="shopcount" style="margin-left: 20px">
				退货状态：
						<span style="color:orangered;">
						<?php $sta=(int)$voo['orderstatus']?>

							<switch name="sta">
								<case value="4">正在退货</case>
								<case value="5">退货完成</case>
								<case value="6">退货不成功</case>
							</switch>
							</span>
			</div>
			<div class="shopcount" style="cursor: pointer;margin-left:20px;margin-top: 10px;">
				操作：
				<switch name="sta">
					<case value="6"><a href="" style="padding: 5px 5px;background: orange;color: #fff">查看原因</a></case>
					<case value="4"><a href="" style="padding: 5px 5px;background: orange;color: #fff">催促商家</a></case>
				</switch>
			</div>
			<div class="jiesuan" style="margin-bottom: 20px;border-bottom: 10px solid lawngreen">
				<div class="gongji">共计<span>{$vo['zongjian']}</span>件商品</div>
				<div class="heji">合计 <span>￥{$vo['orderpay']}</span></div>
			</div>
		</foreach>
	</div>

</div>

</div>


